One, compile a simple apkLocal_path: = $ (call My-dir)Include $ (clear_vars)# Build All Java files in the Java subdirectoryLocal_src_files: = $ (call all-subdir-java-files)# Name of the APK to buildLocal_package_name: = LocalPackage# Tell it to build an APKInclude $ (build_package)Second, compile an apk that relies on the static. jar file. local_path: = $ (call M
Command1.java file converted to class file: Javac-source 1.6-target 1.6 X.java (X.java is the file to be converted, the default is to generate a class file of the same name)Such as:
D:\java\studio\sdk\build-tools\22.0.1>javac-source 1.6-target 1.6 com/chaos/ha
Ck/AntiLazyLoad.java
2.class file converted to jar file: Jar CVF X.jar Y.class (Y.class is the file to be converted, X.jar is the converted file)Su
apk, war, Ear Zip compression available, It looks like these four packages are zip/jar in a simple way to Generate.------------------------------------------------------------------------android-apk Packaging Process adb common directives ( go to: http://15035554141.iteye.com/blog/2090198)Android-apk.pngProcedures for Package installationSrc:
I,CompileSimple APKLOCAL_PATH: = $ (call my-dir) include $ (CLEAR_VARS) # Build all java files in the java subdirectory LOCAL_SRC_FILES :=$ (call all-subdir-java-files) # Name of the APK to build LOCAL_PACKAGE_NAME: = LocalPackage # Tell it to build an APK include $ (BUILD_PACKAGE)II,CompileAPK dependent on the static. jar FileLOCAL_PATH: = $ (call my-dir) includ
Yesterday updated Android Studio packaging encountered two check box, and began to understand ...ProblemAt first the default is to tick V2 (full APK Signature), and then I'll pack to test first and find the installation failed. Later found to have a relationship with the signature.FoundAndroid 7.0 introduced apk Signature Scheme V2 (full apk Signature), V1 (
jar packages using WinRAR or 7z to a directory named classes, and then write a bat batch file with the following content:
Jad.exe-r-FF-D Src-s Java classes/**/*. Class
This will decompile the file into *. java. Of course, the disadvantage is that the directory is gone.
If you want to batch process a large number of jar packages (assuming under the jars directory), you can do this:
1. Select
Reference to:http://www.jianshu.com/p/61e8f803e0d1Android in the development process, with the reference to the library as well as the increase in business, there will inevitably be the 64K limit problem, that is, the number of methods too many problems, Java code in the total number of method and field total cannot exceed 65,535, It is necessary to count how many of these are contained in each jar package, and Google has implemented such tools for us
collection of D2j-apk-sign to sign, if you have signed that use Jarsigner to sign.Signed command line: Jarsigner-verbose-keystore (keystore file)-signedjar a.apk (signature output apk name)-digestalg sha1-sigalg Md5withrsa game.apk (enter apk) alias (alias).PS: Pay special attention to the red part, if jdk7 need to add this, if not signed after the package can n
a new one, this is very easy. Then enter a password for aliasSelect the target directory of the APK store, click Finish, you can see the APK in the specified directory . But if your proguard-project.txt configuration is not well-written, here's the following: (I've blocked a sentence)When you click Finish , the error will appear:after OK, you can look at, confuse before and after similarities and differ
This script was found on GitHub stub.sh :#!/bin/shMyself= ' which"$" 2>/dev/null ' [$?-GT 0 -A - F "$"] myself="./$"Java=javaifTest-n"$JAVA _home"; ThenJava="$JAVA _home/bin/java"fiexec "$java" $java _args-jar$MYSELF "[email protected]"Exit 1For example, if you have a java -jar jar package that you can execute app.jar , just execute:cat stub.sh app.jar > app.ru
Today, when I write a project, I import a jar file that I wrote, and I can't find the jar file error when I debug it:08-06 21:42:10.744:e/androidruntime (2578): java.lang.RuntimeException:Unable to instantiate activity componentinfo{ Com.example.iotlife/com.example.iotlife.mainactivity}: Java.lang.ClassNotFoundException:Didn ' t find class " Com.example.iotlife.MainActivity "on Path:dexpathlist[[zip file"/d
Convert the Jar file to the exe installation file, and install the jar file.
After checking on the network and using the exe4jtool for real-time conversion, the basic steps of the software are as follows:
1. you need to know whether the target file is 32-bit or 64-bit. If the generated file is 32-bit, you need to use a 32-bit jre. If the generated file is 64-bit,
Convert the Jar file to the exe installation file, and install the jar file.
In the past few days, my girlfriend asked me to help her develop a tool for exporting Excel files on the Windows platform. Considering the time problem, I chose the most skilled language Java. Hosts file.
After checking on the network and using the exe4jtool for real-time conversion, the
Method One:Suppose the software name to be built is Iperf.exe1. Place the iperf.exe in any of the codebase directories (the directory must be searchable when searching for android.mk), such as System/iperf/iperf.exe2. In the System/iperf directory, add a android.mk file that reads as follows:Local_path:= $ (call My-dir)Product_copy_files + = $ (local_path)/iperf.exe:system/iperf/iperf.exeRecompile codebase, the file will be built into the System/iperf directory of your phoneThis method prohibits
methods: 1. JIT Technology of VM. The optimized files are stored in the/data/Dalvik-cache directory. This method is valid in the system compiled in the simulator and ENG mode. Only in these two cases can the Dalvik-cache directory be operated without permission issues. 2. Optimize the system installer when installing the application. This requires the write permission of the Dalvik-cache directory. 3. Optimize the system source code compilation. In this way, the
This is a constant demand, I just often forget, the key does not understand AH.Again and again look at the Android makefile. It's too complicated. Take it slow. Hey. Work for 10 years. I don't know anything. What's the whole? ## Copyright (C) The Android Open Source Project## Licensed under the Apache License, Version 2.0 (the "License");# You are not a use of this file except in compliance with the License.# Obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## unless
Method One:If you want to build a software name of Iperf.exe1. Place the Iperf.exe under a random folder in codebase (the folder must be searchable when searching for android.mk), for example System/iperf/iperf.exe2. Add a android.mk file under the System/iperf folder, such as the following:Local_path:= $ (call My-dir)Product_copy_files + = $ (local_path)/iperf.exe:system/iperf/iperf.exeCompile codebase again and the file will be built into the System/iperf folder of your phoneThis method preven
Turn from: 8227876 If you just want to know how to convert the jar to EXE, look directly at the fourth step.First, export the jar file:Select your project---then right-click on the pop-up options list---Select Export---Java---jar file---Next---browser (choose the storage path for the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.